package com.hxc.sercurity;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;

@SpringBootApplication
//开启全局注解权限配置
@EnableGlobalMethodSecurity(securedEnabled = true, prePostEnabled = true)
public class SercurityApplication {

    public static void main(String[] args) {
        SpringApplication.run(SercurityApplication.class, args);
    }

}
